package com.xnfh.planting.viewmodel

import com.xnfh.framework.base.BaseStateObserver
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager
import okhttp3.MultipartBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/18 16:30
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/18 16:30
 * @UpdateRemark: 更新说明
 */
class AddXunTianViewModelRes : BaseRepository() {

    suspend fun requestAddRecord(parts: List<MultipartBody.Part>, data: RespStateData<Any>) =
        dealResp(
            { ApiManager.api.requestAddXunTian(parts) }, data
        )
}